//
//  HJPayCell.m
//  project
//
//  Created by hu on 2019/4/8.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJPayCell.h"
@interface HJPayCell ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UILabel *bankName;
@property (weak, nonatomic) IBOutlet UIImageView *bankImage;
@property (weak, nonatomic) IBOutlet UILabel *bankNum;
@property (weak, nonatomic) IBOutlet UILabel *thirdPayName;
@property (weak, nonatomic) IBOutlet UIImageView *thirdPayImage;

@end
@implementation HJPayCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (IBAction)selecteBtnClicked:(UIButton *)sender {
    sender.selected = !sender.selected;
    
}

-(void)loadCellMoreWithData:(NSDictionary *)dic IndexPath:(NSIndexPath *)indexPath {
    if (indexPath.row==0) {
        [self.bgView rounded:(UIRectCornerTopLeft | UIRectCornerTopRight) radius:10];
    }else if (indexPath.row==2) {
        [self.bgView rounded:(UIRectCornerBottomLeft | UIRectCornerBottomRight) radius:10];
    }
    if (indexPath.row==1) {
        self.thirdPayName.text = @"支付宝";
        self.thirdPayName.hidden = NO;
        self.thirdPayImage.image = setImage(@"zhifubao");
        self.thirdPayImage.hidden = NO;
        self.bankNum.hidden = YES;
        self.bankName.hidden = YES;
        self.bankImage.hidden = YES;
    }else if (indexPath.row==2) {
        self.thirdPayName.text = @"微信";
        self.thirdPayName.hidden = NO;
        self.thirdPayImage.image = setImage(@"weixin");
        self.thirdPayImage.hidden = NO;
        self.bankNum.hidden = YES;
        self.bankName.hidden = YES;
        self.bankImage.hidden = YES;
    }else {
        self.bankNum.hidden = NO;
        self.bankName.hidden = NO;
        self.bankImage.hidden = NO;
        self.thirdPayImage.hidden = YES;
        self.thirdPayName.hidden = YES;
        
    }
}

@end
